package com.sz.youban.dt.entity.pay;

/**
 * @author ruichar
 * 支付状态
 */
public enum PayStatus 
{
	DEAL_ERROR(0,"交易失败"),
	DEAL_SUCC(1,"交易成功"),
	DEAL_ING(2,"系统交易中");
 
    
	/**
     * 状态
     */
    private int status;

    /**
     * 含义描述
     */
    private String desc;
    
    PayStatus (int status,String desc)
    {
    	this.status = status;
    	this.desc = desc;
    }
    
    
	public int getStatus() {
		return status;
	}





	public void setStatus(int status) {
		this.status = status;
	}





	public String getDesc() {
		return desc;
	}





	public void setDesc(String desc) {
		this.desc = desc;
	}





	public static PayStatus getEnu(String name){
    	for(PayStatus enu :PayStatus.values()){
    		if(enu.name().equals(name)){
    			return enu;
    		}
    	}
    	return null;
    }
    
}
